﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SF.BLL
{
    public partial class bs_user_total
    {
        private readonly DAL.bs_user_total dal;

        public bs_user_total()
        {
            dal = new DAL.bs_user_total();
        }

        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public long Add(Model.bs_user_total model)
        {
            return dal.Add(model);
        }

        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool Update(Model.bs_user_total model)
        {
            return dal.Update(model);
        }

        /// <summary>
        /// 获取一个对象实体
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        public SF.Model.bs_user_total GetModel(long userId)
        {
            return dal.GetModel(userId);
        }
    }
}
